﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tencent.OA.ACM.Service.Interface;
using Tencent.OA.ACM.Entity;


namespace Tencent.OA.ACM.Proxy
{
    public class AttachmentProxy : ProxyBase<IAttachmentService>, IAttachmentService
    {
        public int GetCount()
        {
            return pxy.GetCount();
        }

        public Attachment Find(Guid iD)
        {
            return pxy.Find(iD);
        }

        public IList<Attachment> FindAll()
        {
            return pxy.FindAll();
        }

        public IList<Attachment> QuickFindAll()
        {
            return pxy.QuickFindAll();
        }

        public IList<Attachment> FindByStationID(Guid stationID)
        {
            return pxy.FindByStationID(stationID);
        }

        public IList<Attachment> FindByName(String name)
        {
            return pxy.FindByName(name);
        }

        public IList<Attachment> FindByFileType(Byte fileType)
        {
            return pxy.FindByFileType(fileType);
        }

        public IList<Attachment> FindByContentType(String contentType)
        {
            return pxy.FindByContentType(contentType);
        }

        public IList<Attachment> FindByFileSize(Int32 fileSize)
        {
            return pxy.FindByFileSize(fileSize);
        }

        public IList<Attachment> FindByPhysicalFileName(String physicalFileName)
        {
            return pxy.FindByPhysicalFileName(physicalFileName);
        }

        public IList<Attachment> FindByOriginalName(String originalName)
        {
            return pxy.FindByOriginalName(originalName);
        }

        public IList<Attachment> FindByCreateBy(String createBy)
        {
            return pxy.FindByCreateBy(createBy);
        }

        public IList<Attachment> FindByCreateTime(DateTime createTime)
        {
            return pxy.FindByCreateTime(createTime);
        }

        public void Insert(Attachment obj)
        {
            if (obj == null) throw new ArgumentNullException("obj");
            pxy.Insert(obj);
        }

        public void Update(Attachment obj)
        {
            if (obj == null) throw new ArgumentNullException("obj");
            pxy.Update(obj);
        }

        public void Delete(Attachment obj)
        {
            if (obj == null) throw new ArgumentNullException("obj");
            pxy.Delete(obj);
        }

        public int DeleteByStationID(Guid stationID)
        {
            return pxy.DeleteByStationID(stationID);
        }

        public int DeleteByName(String name)
        {
            return pxy.DeleteByName(name);
        }

        public int DeleteByFileType(Byte fileType)
        {
            return pxy.DeleteByFileType(fileType);
        }

        public int DeleteByContentType(String contentType)
        {
            return pxy.DeleteByContentType(contentType);
        }

        public int DeleteByFileSize(Int32 fileSize)
        {
            return pxy.DeleteByFileSize(fileSize);
        }

        public int DeleteByPhysicalFileName(String physicalFileName)
        {
            return pxy.DeleteByPhysicalFileName(physicalFileName);
        }

        public int DeleteByOriginalName(String originalName)
        {
            return pxy.DeleteByOriginalName(originalName);
        }

        public int DeleteByCreateBy(String createBy)
        {
            return pxy.DeleteByCreateBy(createBy);
        }

        public int DeleteByCreateTime(DateTime createTime)
        {
            return pxy.DeleteByCreateTime(createTime);
        }

        public void Reload(Attachment obj)
        {
            if (obj == null) throw new ArgumentNullException("obj");
            pxy.Reload(obj);
        }

        #region IAttachmentService 成员

        /// <summary>
        /// 根据站点ID查询附件信息
        /// </summary>
        /// <param name="stationId">站点Id</param>
        /// <returns>返回附件集合列表</returns>
        public IList<Attachment> GetAttachmentByStationID(Guid stationId)
        {
            return pxy.GetAttachmentByStationID(stationId);
        }

        #endregion
    }
}
